// Created by zyq on 2025/3/30.
#include "iostream"

using namespace std;

class Resume {

private:
    string name;
    string sex;
    string age;
    string timeAre;
    string company;

public:
    Resume(string name) {
        this->name = name;
    }

    void setPersonalInfo(string sex, string age) {
        this->sex = sex;
        this->age = age;
    }

    void setWorkExperience(string timeAre, string company) {
        this->timeAre = timeAre;
        this->company = company;
    }

    void display() {
        cout << "姓名：" << name << " 性别：" << sex << " 年龄：" << age << endl;
        cout << "工作经历：" << timeAre << "公司：" << company << endl;
    }

};

int main() {

    Resume *resume1 = new Resume("张三");
    resume1->setPersonalInfo("男", "25");
    resume1->setWorkExperience("2010-2015", "XXX公司");
    resume1->display();
}
